﻿/* ######################################## *\
 * ### Copyright (C) 2009 AJ Ravindiran ### *
\* ######################################## */
using System;

namespace AJRavindiran.Jolt.Utilities
{
    /// <summary>
    /// Represents a class for time related utilties.
    /// </summary>
    public static class TimeUtilities
    {
        /// <summary>
        /// Alternate GetCurrentMilli from JAVA.
        /// </summary>
        public static double GetCurrentMilliseconds()
        {
            DateTime staticDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
            TimeSpan timeSpan = DateTime.UtcNow - staticDate;
            return timeSpan.TotalMilliseconds;
        }
    }
}
